home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / cups / cupsd.conf < prev    next >
Text File  |  2008-10-20  |  2KB  |  82 lines

  1. #
  2. #
  3. #   Sample configuration file for the Common UNIX Printing System (CUPS)
  4. #   scheduler.  See "man cupsd.conf" for a complete description of this
  5. #   file.
  6. #
  7.  
  8. # Log general information in error_log - change "info" to "debug" for
  9. # troubleshooting...
  10. LogLevel warning
  11.  
  12. # Administrator user group...
  13. SystemGroup lpadmin
  14.  
  15.  
  16. # Only listen for connections from the local machine.
  17. Listen localhost:631
  18. Listen /var/run/cups/cups.sock
  19.  
  20. # Show shared printers on the local network.
  21. Browsing Off
  22. BrowseOrder allow,deny
  23. BrowseAllow all
  24. BrowseAddress @LOCAL
  25.  
  26. # Default authentication type, when authentication is required...
  27. DefaultAuthType Basic
  28.  
  29. # Restrict access to the server...
  30. <Location />
  31.   Order allow,deny
  32. </Location>
  33.  
  34. # Restrict access to the admin pages...
  35. <Location /admin>
  36.   Encryption Required
  37.   Order allow,deny
  38. </Location>
  39.  
  40. # Restrict access to configuration files...
  41. <Location /admin/conf>
  42.   AuthType Default
  43.   Require user @SYSTEM
  44.   Order allow,deny
  45. </Location>
  46.  
  47. # Set the default printer/job policies...
  48. <Policy default>
  49.   # Job-related operations must be done by the owner or an administrator...
  50.   <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
  51.     Require user @OWNER @SYSTEM
  52.     Order deny,allow
  53.   </Limit>
  54.  
  55.   # All administration operations require an administrator to authenticate...
  56.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  57.     AuthType Default
  58.     Require user @SYSTEM
  59.     Order deny,allow
  60.   </Limit>
  61.  
  62.   # All printer operations require a printer operator to authenticate...
  63.   <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
  64.     AuthType Default
  65.     Require user @SYSTEM
  66.     Order deny,allow
  67.   </Limit>
  68.  
  69.   # Only the owner or an administrator can cancel or authenticate a job...
  70.   <Limit Cancel-Job CUPS-Authenticate-Job>
  71.     Require user @OWNER @SYSTEM
  72.     Order deny,allow
  73.   </Limit>
  74.  
  75.   <Limit All>
  76.     Order deny,allow
  77.   </Limit>
  78. </Policy>
  79.  
  80. #
  81. #
  82.